package com.example.blank700.logactivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class SecondActivity extends Activity{
    private Intent intent;
    private static final String LIFT_TAG="MainActivity";
    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        Log.v(MainActivity.LIFT_TAG,"SecondActivity --->onCreate");
//        //返回第一个界面的button，因为有bug，所以先注释了
//        Button secondButton=(Button)findViewById(R.id.secondButton);
//        secondButton.setText("返回第一个Activity");
//        secondButton.setOnClickListener(new sedbtn_back());
    }
//    //返回第一个界面的button的监听器，因为有bug，所以先注释了
//    class sedbtn_back implements View.OnClickListener {
//        @Override
//        public void onClick(View v){
//            SecondActivity.this.setResult(RESULT_OK,intent);
//        }
//    }
    @Override
    protected void onDestroy(){
        Log.v(MainActivity.LIFT_TAG,"SecondActivity --->onDestroy");
        super.onDestroy();
    }
    @Override
    protected void onPause(){
        Log.v(MainActivity.LIFT_TAG,"SecondActivity --->onPause");
        super.onPause();
    }
    @Override
    protected void onRestart(){
        Log.v(MainActivity.LIFT_TAG,"SecondActivity --->onRestart");
        super.onRestart();
    }
    @Override
    protected void onResume(){
        Log.v(MainActivity.LIFT_TAG,"SecondActivity --->onResume");
        super.onResume();
    }
    @Override
    protected void onStart(){
        Log.v(MainActivity.LIFT_TAG,"SecondActivity --->onStart");
        super.onStart();
    }@Override
    protected void onStop(){
        Log.v(MainActivity.LIFT_TAG,"SecondActivity --->onStop");
        super.onStop();
    }
}
